'use strict';

const Controller = require('egg').Controller;

class UserController extends Controller {
  async index() {
    const { ctx } = this;
    ctx.body = {
      name: 'lcy',
      age: 18,
    };
  }
  async getUsers() {
    const { ctx } = this;
    ctx.body = [{
      name: 'lcy',
      age: 18,
    }];
  }
}

module.exports = UserController;
